import { Controller, Get, Response } from '@nestjs/common';

@Controller('article')
export class ArticleController {
  @Get()
  index(@Response() res) {
    // 设置cookie

    res.cookie('username', '我是Cookie', {
      maxAge: 10000 * 60,
      httpOnly: true,
      signed: true, // 加盐
    });
    // return '我是文章信息';
    res.send('我是文章信息');
  }
}
